<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <ul>
            <!-- 使用v-for进行列表渲染 数组 -->
            <li v-for="(item,index) in Animal" :key="item">{{item}}-{{index}}</li>
            <table>
                <tr>
                    <td>编号</td>
                    <td>姓名</td>
                    <td>年龄</td>
                </tr>
                <tr v-for="(item,index) in stus" :key="item.id">
                    <td>{{item.id}}</td>
                    <td>{{item.name}}</td>
                    <td>{{item.age}}</td>
                </tr>
            </table>
        </ul>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                Animal: ['兔子', '老虎', '狮子'],
                stus: [
                    {
                        id: 1,
                        name: "张三",
                        age: 15
                    },
                    {
                        id: 2,
                        name: "李四",
                        age: 16
                    },
                    {
                        id: 3,
                        name: "王五",
                        age: 17
                    }
                ]
            },
            methods: {

            },
        })
    </script>
</body>

</html>